package jpa.entitys.synchro.staging;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the SYNC_SEQUENCE database table.
 * 
 */
@Entity
@Table(name="SYNC_SEQUENCE")
@NamedQueries({
    @NamedQuery(name = "SyncSequence.findAll", query = " SELECT c FROM SyncSequence c "),
    @NamedQuery(name = "SyncSequence.findById", query = " SELECT c FROM SyncSequence c WHERE  c.syncSequenceId = :Id "),
    @NamedQuery(name = "SyncSequence.findByName", query = " SELECT c FROM SyncSequence c WHERE c.isactive = 'Y' And c.name = :name ")
    })
public class SyncSequence extends jpa.entitys.synchro.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SYNC_SEQUENCE_ID", unique=true, nullable=false, length=100)
	private String syncSequenceId;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(length=2)
	private String company;

	@Column(name="CREATED_BY", length=100)
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="CURRENT_NEXT", precision=20)
	private BigDecimal currentNext;

	@Column(length=500)
	private String description;

	@Column(name="IN_CREMENT", precision=22)
	private BigDecimal inCrement;

	@Column(length=1)
	private String isactive;

	@Column(length=100)
	private String name;

	@Column(name="PRE_FIX", length=30)
	private String preFix;

	@Column(name="SUB_FIX", length=30)
	private String subFix;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXT_KEY", length=100)
	private String syncExtKey;

	@Column(name="SYNC_EXT_NO", length=100)
	private String syncExtNo;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UPDATED_BY", length=100)
	private String updatedBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="UPDATED_ON")
	private Date updatedOn;
    
    @Column(name="ACTION_HANDLER", length=20)
	private String actionHandle;
        

    /**
	 * @return the actionHandle
	 */
	public String getActionHandle() {
		return actionHandle;
	}

	/**
	 * @param actionHandle the actionHandle to set
	 */
	public void setActionHandle(String actionHandle) {
		this.actionHandle = actionHandle;
	}

	public SyncSequence() {
    }

	public String getSyncSequenceId() {
		return this.syncSequenceId;
	}

	public void setSyncSequenceId(String syncSequenceId) {
		this.syncSequenceId = syncSequenceId;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getCurrentNext() {
		return this.currentNext;
	}

	public void setCurrentNext(BigDecimal currentNext) {
		this.currentNext = currentNext;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public BigDecimal getInCrement() {
		return this.inCrement;
	}

	public void setInCrement(BigDecimal inCrement) {
		this.inCrement = inCrement;
	}

	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPreFix() {
		return this.preFix;
	}

	public void setPreFix(String preFix) {
		this.preFix = preFix;
	}

	public String getSubFix() {
		return this.subFix;
	}

	public void setSubFix(String subFix) {
		this.subFix = subFix;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExtKey() {
		return this.syncExtKey;
	}

	public void setSyncExtKey(String syncExtKey) {
		this.syncExtKey = syncExtKey;
	}

	public String getSyncExtNo() {
		return this.syncExtNo;
	}

	public void setSyncExtNo(String syncExtNo) {
		this.syncExtNo = syncExtNo;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(Date updatedOn) {
		this.updatedOn = updatedOn;
	}

}